import {BasicColumn, FormSchema} from '/@/components/Table';

export enum MpAutoReplyTypeEnum {
  // 关注时回复
  SUBSCRIBE = '1',
  // 收到消息回复
  MESSAGE = '2',
  // 关键词回复
  KEYWORD = '3'
}


// 图片文件
export const materialImageColumn: BasicColumn[] = [
  {
    title: '文件名称',
    dataIndex: 'name',
    width: 100,
  },
  {
    title: '图片',
    dataIndex: 'url',
    slots: { customRender: 'imageUrl' },
    width: 70,
  },
  {
    title: '上传时间',
    dataIndex: 'createdAt',
    width: 100,
  },
];

export const subscribeReplyFormSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'id',
    show: false,
    component: 'Input',
  },
  {
    field: 'content',
    label: '回复消息',
    component: 'Input',
    slot: 'reply'
  }
];
